<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "{{%_admin}}".
 *
 * @property integer $admin_id
 * @property string $admin_user
 * @property string $admin_pwd
 */
class Admin extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public $verifyCode;
    public static function tableName()
    {
        return '{{%admin}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['admin_user'], 'string', 'max' => 30],
            [['admin_pwd'], 'string', 'max' => 32]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'admin_id' => 'Admin ID',
            'admin_user' => 'Admin User',
            'admin_pwd' => 'Admin Pwd',
        ];
    }
}
